package edu.sctu.practice.class02.xuejiahua.assign02;

/**
 * Created by Administrator on 2015/10/8.
 */
public class RationalRun {
    public static void main(String[] args) {
        double a=4;
        double b=3;
        Rational rational = new Rational(a,b);
        System.out.println(a+"+"+b+"="+rational.getAdd());
        System.out.println(a+"-"+b+"="+rational.getMinus());
        System.out.println(a+"*"+b+"="+rational.getTime());
        System.out.println(a+"/"+b+"="+rational.getDivide());

    }


}
